After recently adding 13 #NFTs, today @Joseinnewworld kept the momentum going with 5 more 🔥 It shows how steady steps, day by day, shape a stronger foundation. Big thanks, legend #eCash $XEC #NFTCollectors #NFTartwork #NFTCommunity #nftmint #CryptoRecovery #nftsales pic.twitter.com/lNETHaCLxB
— NFToa (@nftoa_) August 30, 2025
This project is a development of previous projects, so what we need to do is:
Creating a Food Chain Scenario With Greenfoot
1. Create a new Actor by right-clicking Actor >> New subclass >> Select the appropriate one.
2. In the new Actor (as the Enemy Actor) we add the following code:
3. Add a Point Indicator to the Elephant Actor, by adding the following code;
4. The result will be like this:
Legacy Assignment
1). Mention and explain the function of the control objects of each execution object in the Execution Controls area!
- act: used to run the scenario manually (step by step) based on the overall program that has been created.
- run: used to run scenarios automatically based on the overall program that has been created.
- speed : used to set the speed when the scenario is run.
- reset : used to clear the appearance of actor objects in the world
2). Observe and explain what happens to the scenario before and after compilation!
Before compilation, the world page is not displayed.
After compilation, the world page is available or displayed so that the object or actor scenario can be created.
3). Fill in the move() method dialog window with an integer value of 10, observe and explain what happens!
When the move() method dialog window is filled with an integer value of 10, the object/actor will move slightly to the right by 10 cells (where each cell is 1x1 pixel in size)
4). Fill in the dialog window of the turn() method with an integer value of 5, observe and explain what happens!
When the dialog window of the turn() method is filled with an integer value of 5, the object/actor will rotate slightly to the right as far as 5 cells (where each cell is 1x1 pixel in size)
5). Mention the function of the control objects from the scenario as shown in the image below!
The answer is the same as question no. 1.
6). What things do you get from the practice you do related to the Object Oriented Programming paradigm that you have learned so far?
Based on the results of the practicum that I did, the things I got based on the OOP paradigm are that an object reflects a class, so the number of classes can be determined by how many objects there are and in its implementation a method, function or attribute is used to create the character of each object.
